using System;

namespace Framework.Library.Core.Utils.Miscellaneous
{
    public delegate void ErrorEventHandler(object sender, ErrorEventArgs e);

    public class ErrorEventArgs : EventArgs
    {
        private readonly Exception _exception;

        public ErrorEventArgs(Exception exception)
        {
            _exception = exception;
        }

        public virtual Exception Exception
        {
            get { return _exception; }
        }
    }
}